package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Orders;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author ck
 * @date 2021/10/18 20:52
 */
public interface OrdersService extends IService<Orders> {

    public void submit(Orders orders);

    public void updateWithStatus(Orders orders);

    public R<Page> userPage(int page, int pageSize);

    public R<Page> pageCat(int page,
                           int pageSize,
                           String number,
                           LocalDateTime beginTime,
                           LocalDateTime endTime);
}
